package com.jyhg.core.mobile.utils
{
	import starling.utils.AssetManager;
	
	public class CoreAsset extends AssetManager
	{
		public function CoreAsset(scaleFactor:Number=1, useMipmaps:Boolean=false)
		{
			super(scaleFactor, useMipmaps);
			verbose = true;
		}
		
		override protected function log(message:String):void
		{
			super.log(message);
		}
		
		private var _uniqueUrls:Array=[];
		
		
		public function loadQueueComplete(fun:Function):void
		{
			loadQueue(function(r:Number):void
			{
				if (r == 1 || isNaN(r))
				{
					fun();
				}
			});
		}
	}
}